package org.jeecg.modules.basic.plan.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 物料计划申请表
 * @Author: jeecg-boot
 * @Date:
 * @Version: V1.0
 */
@Data
@TableName("lwgy_material_planapplication")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="lwgy_material_planapplication对象", description="物料计划申请表")
public class LwgyMaterialPlanapplication implements Serializable {
    private static final long serialVersionUID = 1L;

	/**编号*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "编号")
    private String id;
    /**校区*/
    @Excel(name = "校区", width = 15,dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @Dict(dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @ApiModelProperty(value = "校区")
    private String studentCampus;
    /**申请时间*/
    @Excel(name = "申请时间", width = 15,format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "日期")
    private Date writeTime;
    /**申请人*/
    @Excel(name = "申请人", width = 15)
    @ApiModelProperty(value = "申请人")
    private String writerId;
    /**申请单号*/
    @Excel(name = "申请单号", width = 15)
    @ApiModelProperty(value = "申请单号")
    private String stockNo;
	/**备注*/
	@Excel(name = "申请备注", width = 15)
    @ApiModelProperty(value = "申请备注")
    private String note;
    /**审核状态*/
    @Excel(name = "审核状态", width = 15,dicCode = "plan_state")
    @ApiModelProperty(value = "审核状态")
    @Dict(dicCode = "plan_state")
    private String state;
    /**审核时间*/
    @Excel(name = "审核时间", width = 15,format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审核日期")
    private Date checkTime;
	/**审核人*/
	@Excel(name = "审核人", width = 15)
    @ApiModelProperty(value = "审核人")
    private String checkId;

	/**采购进度*/
	/*@Excel(name = "采购进度", width = 15)*/
    @ApiModelProperty(value = "采购进度")
    private Double progress;
    /**入库进度*/
   /* @Excel(name = "入库进度", width = 15)*/
    @ApiModelProperty(value = "入库进度")
    private Double inStockProgress;

	/**审核备注*/
	@Excel(name = "审核备注", width = 15)
    @ApiModelProperty(value = "审核备注")
    private String checkNote;

    /**审批状态*/
    @Excel(name = "审批状态", width = 15,dicCode = "review_state")
    @ApiModelProperty(value = "审批状态")
    @Dict(dicCode = "review_state")
    private String reviewState;  //未审批0，审批通过1审批未通过2
    /**审批时间*/
    @Excel(name = "审批时间", width = 15,format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "审批日期")
    private Date  reviewTime;
    /**审批人*/
    @Excel(name = "审批人", width = 15)
    @ApiModelProperty(value = "审批人")
    private String  reviewId;
    /**审批人备注*/
    @Excel(name = "审批人备注", width = 15)
    @ApiModelProperty(value = "审批人备注")
    private String  reviewNote;


	/**所属仓库*/
	@Excel(name = "仓库名字", width = 15,dictTable = "lwgy_material_inventory",dicCode = "id",dicText = "inventory_name")
    @Dict(dictTable = "lwgy_material_inventory",dicCode = "id",dicText = "inventory_name")
    @ApiModelProperty(value = "仓库名字")
    private String name;
	/**日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "日期")
    private Date createTime;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd  HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;

}
